package a2022.a20220929;

/**
 * @author lenovo
 * @date 2022/9/29
 */
public class a {
    public static void main(String[] args) {
        System.out.println(isFlipedString("waterbottle", "erbottlewat"));
    }
    public static boolean isFlipedString(String s1, String s2) {
        if (s1.length() != s2.length()) return false;
        String str=s1+s1;
        return str.contains(s2);
    }
}
